package com.wenqiner.requesttool.view.base;

import cn.hutool.core.util.RandomUtil;

/**
 * @author rhf
 * @date 2023-03-28
 **/
public interface CommonController {
    /**
     * 初始化方法
     *
     * @author rhf
     */
    void init();

    /**
     * 返回requestId
     *
     * @return java.lang.String
     * @author rhf
     */
    default String requestId() {
        return "cs-request-" + RandomUtil.randomString(3) + System.currentTimeMillis() + RandomUtil.randomString(5);
    }

}
